package org.openrbac.rbac.constant;

import java.util.ArrayList;
import java.util.Arrays;

/**
 * @author bapie
 */
public class CommonConstant {
    public static final String TOKEN_KEY = "token";
    public static final String TOKEN_HEADER = "Authorization";
    public static final String TOKEN_STARTS = "Bearer ";
    public static final String TOKEN_ISNOTEXSIST = "Token不存在或者已经过期";
    public static final String CAPTCHA = "captcha";
    public static final String MAIL_CAPTCHA = "mail_captcha";
    public static final String USERNAME = "username";

    public static final String USER_PART_MESSAGE = "user_part_message";
    public static final String USER_ALL_MESSAGE = "user_all_message";
    public static final String AUTHS = "auths";

    public static final String SERVICE_ITEM = "service_item";
    public static final String DICT_DETAILS = "dict_details";

    public static final ArrayList<String> WHITE_KEY = new ArrayList<>(Arrays.asList("/public/**",
            "/image/**","/login","/catalogue/**"));
}
